<?php
class User extends AppModel{
    var $name = "User";
    function getname($id){
        return $this->field('username',array('id'=>$id));
    }
}